@charset "utf-8";
/**
 * Created by kroyo on 2018/02/06.
 * 案例库列表 
 */


@import 'common/mixincommon';


body{
    background-color: #f2f2f2;
}


.main{
    position: relative;
    padding-left: r(20px); 
    padding-right: r(20px);
    padding-top: r(110px);
}



.main-search{
    position: absolute;
    top: 0;
    height: r(110px);
    padding: r(20px);
    margin-left: r(-20px);
    margin-right: r(-20px);
    background-color: #ffffff;
    input{
        height: r(70px);
        background-color: transparent;
    }
    .category-wrap{
        position: relative;
        width: r(270px);
        height: r(70px);
        border: 1px solid $borcolor;
        border-right: none;
        input{
            position: relative;
            width: r(250px);
            height: 100%;
            padding: 0 r(8px);
            font-size: r(28px);
            background: #f9f9f9;
        }
        .seloff{
            position: absolute;
            top: r(28px);
            right: r(30px);
            display: inline-block;
            width: r(20px);
            height: r(14px);
            background:url(../img/case/icon-down.png) no-repeat center;
            background-size: 100%;
            @include transitions(.4s);
        }
        &.active{
            .seloff{
                transform: rotate(180deg);
            }
        }
    }
    .search-wrap{
        width: r(440px);
        height: r(70px);
        font-size: 0;
        input{
            width: r(350px);
            color: $s3;
            font-size: r(28px);
            border: 1px solid $borcolor;
            border-right: none;
            border-left: none;
            @include borradius(r(4px) 0 0 r(4px));
            padding: 0 r(20px);
            vertical-align: middle;
            @include inputplace($sc);
            background-color: transparent;
        }
        .searchbtn{
            display: inline-block;
            width: r(90px);
            height: 100%;
            @include borradius(0 r(4px) r(4px) 0);
            background: url(../img/case/icon-search.png) no-repeat center;
            background-size: 45%;
            background-color: $acolor;
            vertical-align: middle;
        }
    }
    //绝对定位
    &.fixed{
        position: fixed;
        top: 0;
        left: 0;
        margin: 0;
        @include box_shadows(0,1px,5px,0,rgba(0,0,0,.2));
    }
}


//下拉列表
.selectlist-wrapper{
    display: none;
    position: absolute;
    top: r(110px);
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: r(20px);
    padding-right:r(20px);
    background-color: rgba(0,0,0,.5);
    ul{
        position: relative;
        width: 100%;
        height: r(280px);
        background-color: $sf;
        @include borradius(r(4px));
        color: $s6;
        font-size: r(26px);
        margin-top: r(30px);
        padding-bottom: r(20px);
        overflow-y: scroll;
        &:before{
            position: absolute;
            top: r(-20px);
            left: r(60px);
            display: inline-block;
            content: '';
            border-left: r(20px) solid transparent;
            border-right: r(20px) solid transparent;
            border-bottom: r(20px) solid $sf;
        }
    }
    li{
        height: r(70px);
        line-height: r(70px);
        padding-left: r(60px);
        &.selected{
            color: $acolor;
            background-color: $f2;
        }
    }
    &.fixed{
        position: fixed;
        top: r(110px);
        left: 0;
    }
}



.main-caselist{
    margin-bottom: r(40px);
    .li{
        float: left;
        width: r(345px);
        margin-top: r(20px);
        &:nth-of-type(2n){
            margin-left: r(20px);
        }
        a{
            display: block;
            width: 100%;
            height: 100%;
        }
    }
    .list-img{
        width: 100%;
        height: r(270px);
        overflow: hidden;
        img{
            width: 100%;
            text-align: center;
        }
    }
    .list-text{
        width: 100%;
        height: r(90px);
        line-height: r(90px);
        font-size: r(28px);
        color: $s3;
        text-align: center;
        background-color: $sf;
        @include textoverflow;
        padding: 0 r(20px);
    }
}

.nodataview{
    width: 100%;
    height: r(300px);
    line-height: r(300px);
    font-size: r(28px);
    color: $s3;
    text-align: center;
}



.main-pagelist{
    width: 100%;
    height: r(80px);
    line-height: r(80px);
    font-size: 0;
    background-color: $sf;
    @include borradius(r(4px));
    padding: 0 r(100px);
    text-align: center;
    overflow: hidden;
    margin-bottom: r(40px);
    .pagebtn{
        display: inline-block;
        width: 50%;
        font-size: 0;
    }
    .btn{
        position: relative;
        display: inline-block;
        width: r(120px);
        height: 100%;
        font-size: r(28px);
        color: $s3;
    }
    .topbtn:before{
        position: relative;
        right: r(18px);
        display: inline-block;
        content: '';
        width: r(20px);
        height: r(13px);
        background: url(../img/case/icon-down.png) no-repeat center;
        background-size: 100%;
        transform-origin: 65%;
        transform: rotateZ(90deg);
    }
    .nextbtn:after{
        position: relative;
        right: r(-20px);
        display: inline-block;
        content: '';
        width: r(20px);
        height: r(13px);
        background: url(../img/case/icon-down.png) no-repeat center;
        background-size: 100%;
        transform-origin: 35%;
        transform: rotateZ(-90deg);
    }
}




.main-morebtn{
    display: block;
    width: 100%;
    height: r(80px);
    line-height: r(80px);
    font-size: r(28px);
    color: $s3;
    @include borradius(r(4px));
    text-align: center;
    background-color: $borcolor;
    margin-top: r(-10px);
    margin-bottom: r(20px);
}




//加载动画
.newcase-loading{
    display: none;
    height: r(50px);
    line-height: r(50px);
    font-size: 0;
    text-align: center;
    margin-top: r(20px);
    margin-bottom: r(20px);
    img{
        vertical-align: middle;
    }
    .loading-text{
        display: inline-block;
        font-size: r(26px);
        color: $s3;
        margin-left: r(20px);
        vertical-align: middle;
    }
}







.site-window{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: $sf;
    z-index: 99;
}

//品类选择弹窗
.site-category{
    .win-header{
        position: relative;
        width: 100%;
        height: r(120px);
        line-height: r(120px);
        border-bottom: 1px solid $borcolor;
        .title{
            font-size: r(32px);
            color: $s3;
            text-align: center;
        }
        .win-close{
            position: absolute;
            top: r(44px);
            left: r(30px);
            width: r(32px);
            height: r(32px);
            background: url(../img/common/icon-close.png) no-repeat center;
            background-size: 100%;
        }
    }
    .win-content{
        font-size: 0;
        .cate{
            display: inline-block;
            width: r(210px);
            height: r(70px);
            line-height: r(68px);
            border: 1px solid $s6;
            @include borradius(r(10px));
            font-size: r(26px);
            text-align: center;
            margin-top: r(30px);
            margin-left: r(30px);
            @include transitions(.4s);
        }
        .cate.active{
            border-color: $acolor;
            color: $acolor;
        }
    }
}
